Skip to content

Conversation

@fdrgsp
Copy link
Collaborator

@fdrgsp fdrgsp commented Nov 29, 2025

Fixes the bug in #481 where, when using the HCSWizard with a plate type that has only 1 row and 1 column (or any plate with fewer than 3 wells, e.g. coverslip-18-mm-square), the user cannot proceed to the FOV selection page after calibration because the UI enforces “calibrate at least 3 wells”.

closes #481 .

@fdrgsp fdrgsp added the bug Something isn't working label Nov 29, 2025
@codecov
Copy link

codecov bot commented Nov 29, 2025

Codecov Report

❌ Patch coverage is 93.93939% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 87.79%. Comparing base (bc8915d) to head (1999cd1).

Files with missing lines Patch % Lines
.../pymmcore_widgets/hcs/_plate_calibration_widget.py 93.93% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #482      +/-   ##
==========================================
- Coverage   87.81%   87.79%   -0.02%     
==========================================
  Files         106      106              
  Lines       11676    11701      +25     
==========================================
+ Hits        10253    10273      +20     
- Misses       1423     1428       +5     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Comment on lines +163 to +165
self._min_wells_required = min(3, plate.rows * plate.columns)
else:
self._min_wells_required = 3
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think a flexible min_wells_required sort of misses the point. Specifically: this determines whether we can calibrate for rotation (this value is used below in _origin_spacing_rotation). You always need 3 points for rotation, so a 2x1 doesn't just require 2 min_wells ... it still requires 3. This variable is ultimately more about "can/should we calibrate for rotation or not". It's always 3, or not possible

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤦‍♂️ you're right sorry...I'll find a better fix😀!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug HCSWizard when selecting coverslip-like options

2 participants